<style>
	.catplist tr:hover td { background:#ffff99;}
        .catplist th img { display:none; }
	.catplist td { vertical-align:middle; }
	.catplist del { display:none; }
	.catplist ins { text-decoration:none; }
		.catplist span.amount { font-size:14px;font-weight:bold;color:#263692; }
</style>

<table id="cattablelayout" class="sortable catplist">
        <thead>
	<tr>
		<th></th>
		<th>Product Name / SKU</th>
		<th style="text-align:center;"><?php echo $productattributeone; ?></th>
		<th style="text-align:center;"><?php echo $productattributetwo; ?></th>
		<th style="text-align:center;">Price</th>
		<th style="text-align:right;">Buy Now</th>
	</tr>
        </thead>
        <tbody>
	<?php // Call The Products For The Page

		$args = array(
			'post_type' => 'product',
                        'cat__in' => $categorylist,
                        'meta_query' => array(
				array(
				'key' => $producttype,
				'value' => 'Educational Kit',
				'compare' => '=='
				)
			)
		);

		$productlist = new wp_query($args);
			while($productlist->have_posts()) : $productlist->the_post();

			// Get The Product SKU
			$productsku = get_post_custom($post->ID);
			$showproductsku = $productsku['_sku'];
			foreach ( $showproductsku as $showproductsku );

			// Get The Product Image
				if (get_field('productFeaturedImage') != '') {
                	$productimage = get_field('productFeaturedImage');
                } else {
                	$productimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
                        $productimage = $productimage[0];
                }

	?>

	<tr>
		<td style="text-align:center;">
			<a href="<?php the_permalink(); ?>">
				<img src="<?php echo $productimage; ?>" alt="<?php the_title(); ?>" style="width:50px;height:50px;margin:0px;margin:0px;" />
			</a>
		</td>
		<td>
			<p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br><span style="font-style:italic;font-size:11px;">SKU: <?php echo $showproductsku; ?></span></p>
		</td>
		<td style="text-align:center;">
			<p><?php the_field('edukitstech'); ?></p>
		</td>
		<td style="text-align:center;">
                        <p><?php the_field('edukitsgrades'); ?></p>
		</td>
		<td style="text-align:center;">
			<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
		</td>
		<td style="text-align:right;">
			<p>
				<a href="<?php the_permalink(); ?>">View Details</a><br>
			</p>
		</td>
	</tr>

	<?php endwhile; ?>
	<?php wp_reset_query(); ?>
        </tbody>
</table>
